import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
import { PreviewPage } from '../pages/home/clipboard/preview/preview'
import { HomeModule } from '../pages/home/home.module';
import { ClipBoardModule } from '../pages/home/clipboard/clipboard.module';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Camera } from '@ionic-native/camera';
import { SQLite } from '@ionic-native/sqlite';
import { Toast } from '@ionic-native/toast';
import { PhotoLibrary } from '@ionic-native/photo-library';



@NgModule({
  declarations: [
    HomePage,
    MyApp,
    PreviewPage,
  ],
  imports: [
    BrowserModule,
    HomeModule,
    ClipBoardModule,
    IonicModule.forRoot(MyApp),
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HomePage,
    PreviewPage,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    Camera,
    SQLite,
    Toast,
    PhotoLibrary,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
